package JavaDesign.report_12.t_1;

public class BuildingCost extends ArchitectureCost {
    BuildingCost(BuildingDesign design, double unitPrice) {
        this.design = design;
        this.unitPrice = unitPrice;
    }

    public double giveCost() {
        double area = design.computerArea();
        return area * unitPrice;
    }
}   
